package com.cloudcentral.entity.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * Create by Administrator
 * 2023/11/30 18:53
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(name = "DetectResultBestGenerateQuery", description = "生成探测结果优选")
public class DetectResultBestGenerateQuery {
  @Schema(description = "主站ID")
  private Integer masterId;
  @Schema(description = "从站ID")
  private Integer slaveId;
  @Schema(description = "优选条数", defaultValue = "10")
  private Integer number;
  @Schema(description = "优选条件")
  private List<DetectResultBestGenerateConditionQuery> conditions;
  @Schema(description = "起始日期", pattern = "yyyy-MM-dd")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date beginDate;
  @Schema(description = "截止日期", pattern = "yyyy-MM-dd")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date endDate;
}
